//
//  BKShowImgCollectionView.h
//  bestkeep
//
//  Created by windCould on 16/11/10.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BKShowImgCollectionView;

@protocol BKShowImgCollectionViewDelegate <NSObject>

-(void)showImgCollectionView:(BKShowImgCollectionView *)collectionView selectIndex:(NSInteger)index;
@optional
-(void)showImgCollectionView:(BKShowImgCollectionView *)collectionView collectionViewContentScrowToIndex:(NSInteger)index;

@end


@interface BKShowImgCollectionView : UIView

@property (nonatomic,strong)NSArray * imgArr;
@property (nonatomic,assign)NSInteger currentIndex;
@property (nonatomic,assign)CGSize itemSize;
@property (nonatomic,strong)UICollectionView * collectionView;
@property (nonatomic,strong)UICollectionViewFlowLayout * layout;
@property (nonatomic,assign)BOOL isDataOfImg; //判定获取的数据源是图片 还是图片url

@property (nonatomic,weak)id<BKShowImgCollectionViewDelegate>myDelegate;


@end
